﻿using Common.Communal;
using ERP.Domain.CustomerSupplier;
using ERP.Domain.Workorders;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Sell.Services.Goods
{
    public interface IGoodsServices
    {
        /// <summary>
        /// 货品新增
        /// </summary>
        /// <param name="good"></param>
        /// <returns></returns>
        Task<ApiResult<int>> AddGood(Good good);
       /// <summary>
       /// 货品修改
       /// </summary>
       /// <param name="good"></param>
       /// <returns></returns>
        Task<ApiResult<int>> UpdateGood(Good good);
        /// <summary>
        /// 删除货品
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<ApiResult<int>> DeleteGood(int id);
    }
}
